package com.googlecode.xmltojava;

import java.util.LinkedList;

public class ScriptItem {
	private String _text;
	private String _value;
	private String _value2;
	private LinkedList<ScriptItem> _childs;
	public ScriptItem(String text){
		_text = text;
		_childs = new LinkedList<ScriptItem>();
	}
	public ScriptItem(String text, String value) {
		_text = text;
		_value = value;
		_childs = new LinkedList<ScriptItem>();
	}
	public String getTitle() {
		return _text;
	}
	public String getValue() {
		return _value;
	}
	public String getValue2() {
		return _value2;
	}
	public void setValue2(String x) {
		_value2 = x;
	}
	
	public void add(ScriptItem child) {
		_childs.add(child);
	}
	public LinkedList<ScriptItem> getChilds() {
		return _childs;
	}
}
